package com.demo.service;

import com.demo.entity.Orders;

import java.util.List;

public interface OrdersService {
    List<Orders> queryOrdersInfo();                                   	  //查询所有订单信息列表
    void updateOrdersByState(String pid);								//更新未支付订单的支付操作

    //插入订单数据
    void insertOrderInfo(Double money,String receiverName,String receiverPhone,String receiverAddress,int paystate,String uname);

    int selectProductPnum(String pid);															//先查询库存量
    void updateProductsInfo(int pnum,String pid,int pnum2);				//根据购买数量减少库存量
    void deleteUnPayOrdersById(String id);												//删除-撤销订单
}